repo/checkout: fix 32-bit builds
authorChristian Hergert <chergert@redhat.com>
Wed, 8 Mar 2017 06:48:51 +0000 (22:48 -0800)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 8 Mar 2017 14:01:10 +0000 (14:01 +0000)
__dev_t is 64-bit even on 32-bit Linux systems such as i386.

Closes: #724
Approved by: cgwalters

src/libostree/ostree-repo-checkout.c

index 53409529f3168b69ed0076fad92802760b5dfe5a..77bda09a1d2050dddb381ad0ae6a41334473c7a4 100644 (file)
@@ -706,8 +706,8 @@ checkout_tree_at (OstreeRepo                        *self,
   if (options->no_copy_fallback && repo_dfd_stat.st_dev != destination_stat.st_dev)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                   "Unable to do hardlink checkout across devices (src=%lu destination=%lu)",
-                   repo_dfd_stat.st_dev, destination_stat.st_dev);
+                   "Unable to do hardlink checkout across devices (src=%"G_GUINT64_FORMAT" destination=%"G_GUINT64_FORMAT")",
+                   (guint64)repo_dfd_stat.st_dev, (guint64)destination_stat.st_dev);
       goto out;
     }